10. More Functions

Congratulations on writing and deploying a cloud function for FriendlyChat. We've now reached the end to this extended weekend.

There's much more to explore with the Firebase SDK for Cloud Functions. These cloud functions are the glue between services, taking action whenever an event occurs.

Here's some examples of what you can do:

  • Pre-process form submissions before writing to the Realtime Database
  • Start encoding a video once a video has finished uploading to Firebase Storage
  • Resize an image once a photo has finished uploading to Firebase Storage
  • Send a notification when someone comments on a photo/video
  • Add custom auth for username/password or new OAuth providers
  • Process webhooks from a third-party payment provider

Check out the Firebase SDK for Cloud Functions documentation and the collection of sample functions by Firebase on GitHub.